package com.mx.mg.idempotence.exception;

/**
 * @Auther: ghm
 * @Date: 2021/09/02/17:28
 *
 *   业务逻辑异常
 *
 */
public class ServiceException extends RuntimeException{
    private String code;
    private String msg;

    public ServiceException() {
    }

    public ServiceException(String msg) {
        this.msg = msg;
    }

    public ServiceException(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
